using Blog2025.Domain.Events;
using MediatR;

namespace Blog2025.Application.Events;

/// <summary>
/// 领域事件到 MediatR 通知的适配器
/// </summary>
public class DomainEventNotification : INotification
{
    /// <summary>
    /// 领域事件
    /// </summary>
    public IDomainEvent DomainEvent { get; }

    public DomainEventNotification(IDomainEvent domainEvent)
    {
        DomainEvent = domainEvent;
    }
}
